#1可以使用大括号创建
s={1,2,3,4}
#2使用set（）函数创建
ss=set('1234')
print(type(s))
print(type(ss))

s.add(6)
print(s)
s.pop()
print(s)
s.remove(4)
print(s)

#创建空元组
tuple1=()
print(tuple1)

tuple2=(1,"a",3,"hello",2.2)
print(type(tuple2))

tuple3=(1,)
print(type(tuple3))


tuple1=tuple("hello,world")
print(tuple1)

list1=['Python','Java','C++','C']
tuple2=tuple(list1)
print(tuple2)

tuple1=('h','e','l','l','o')
print(tuple1[2])
print(tuple1[-4])

print(tuple1[1:4])
print(tuple1[1:4:2])
print(tuple1[-5:-1])


